//
//  WelcomeVC.swift
//  kxf
//
//  Created by Elavatine on 2024/11/6.
//


class WelcomeVC: WHBaseViewVC {
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        initUI()
    }
    lazy var logoImage: UIImageView = {
        let img = UIImageView()
        img.setImgLocal(imgName: "launch_logo")
        
        return img
    }()
    lazy var welcomLabel: UILabel = {
        let lab = UILabel()
        lab.text = "欢迎使用星渝付助手APP"
        lab.font = .systemFont(ofSize: 24, weight: .semibold)
        lab.textColor = .black
        
        
        return lab
    }()
}

extension WelcomeVC{
    func initUI() {
        view.backgroundColor = .white
        
        view.addSubview(logoImage)
        view.addSubview(welcomLabel)
        
        setConstrait()
    }
    func setConstrait() {
        logoImage.snp.makeConstraints { make in
            make.center.lessThanOrEqualToSuperview()
            make.width.height.equalTo(kFitWidth(136))
        }
        welcomLabel.snp.makeConstraints { make in
            make.centerX.lessThanOrEqualToSuperview()
            make.bottom.equalTo(-getBottomSafeAreaHeight()-kFitWidth(80))
        }
    }
}
